﻿<include file="top" />
	<div class="submenu"><a href="?m=MediaMuti" class="current">[群发素材管理]</a></div>
<table width="100%">
	<tr class="h"><td>ID</td><td>类型</td><td>发送方式</td><td>发送目标</td><td>时间</td><td>消息ID</td><td>消息详情</td><td>操作</td></tr>
<loop name="MessagesMuti">
	<tr class="l">
		<td>{$MessagesMuti.Id}</td><td>{$MessagesMuti.MsgType}</td>
		<td>{$MessagesMuti.SendTo}</td><td>{$MessagesMuti.Filter}</td>
		<td>{$MessagesMuti.CreateAt:F.untimespan}</td><td>{$MessagesMuti.MsgId}</td>
		<td>{$MessagesMuti.Details:left=20}...</td>
	<td><a href="?m=MessagesMuti&a=Delete&Id={$MessagesMuti.Id}" onclick="return window.confirm('确定要删除本记录吗？');">删除</a></td>
	</tr>
</loop>
	<tr class="l"><td colspan="8"><page for="MessagesMuti" /></td></tr>
</table>
<div>新建群发：
<a href="?m=MessagesMuti&type=text"<eq name="Mo.Get.type" value="text"> class="current"</eq>>文本</a> |
<a href="?m=MessagesMuti&type=image"<eq name="Mo.Get.type" value="image"> class="current"</eq>>图片</a> |
<a href="?m=MessagesMuti&type=voice"<eq name="Mo.Get.type" value="voice"> class="current"</eq>>语音</a> |
<a href="?m=MessagesMuti&type=video"<eq name="Mo.Get.type" value="video"> class="current"</eq>>视频</a> |
<a href="?m=MessagesMuti&type=news"<eq name="Mo.Get.type" value="news"> class="current"</eq>>图文</a>
</div>
<nempty name="Mo.Get.type">
<form action="?m=MessagesMuti&a=sendmessagemuti" method="post">
	<label>群发类型：</label>
	<input type="radio" name="SendTo" value="group" checked="checked" onclick="this.form['GroupId'].style.display='block';this.form['Users'].style.display='none';" /> 按用户组
	<input type="radio" name="SendTo" value="users" onclick="this.form['GroupId'].style.display='none';this.form['Users'].style.display='block';" /> 按用户
	<label>群发目标：</label>
	<textarea cols="60" rows="4" name="Users" style="display:none">{$Mo.Get.OpenIds:Replace=",",VbCrlf}</textarea>
	<select name="GroupId">
		<loop name="Groups">
		<option value="{$Groups.GroupId}">{$Groups.Name}({$Groups.SubCount}粉丝)</option>
		</loop>
	</select>
<switch name="Mo.Get.type">
	<case value="image" />
		<input type="hidden" name="Type" value="image" />
		<label>选择图片：</label>
		<select name="Mediaid">
			<loop name="Media">
			<option value="{$Media.MediaId}">{$Media.Name}</option>
			</loop>
		</select>
	<case value="voice" />
		<input type="hidden" name="Type" value="voice" />
		<label>选择语音：</label>
		<select name="Mediaid">
			<loop name="Media">
			<option value="{$Media.MediaId}">{$Media.Name}</option>
			</loop>
		</select>
	<case value="video" />
		<input type="hidden" name="Type" value="video" />
		<label>视频标题：</label><input name="Title" value="" type="text" />
		<label>选择视频：</label>
		<select name="Mediaid">
			<loop name="Media">
			<option value="{$Media.MediaId}">{$Media.Name}</option>
			</loop>
		</select>
		<label>视频描述：</label><textarea name="Description" cols="60" rows="4"></textarea>
	<case value="news" />
		<input type="hidden" name="Type" value="news" />
		<label>选择图文：</label>
		<select name="Mediaid">
			<loop name="Media">
			<option value="{$Media.MediaId}">{$Media.Name}</option>
			</loop>
		</select>
	<default />
		<input type="hidden" name="Type" value="text" />
		<label>文本内容</label>
		<textarea name="Content" cols="60" rows="4"></textarea>
</switch><br />
<input type="submit" value="发送消息" />
</form>
</nempty>
<include file="foot" />